Optimal. Leaf size=271 \[ \frac {2 b (a-b) \sqrt {a+b} \cot (c+d x) \sqrt {\frac {a (1-\sec (c+d x))}{a+b}} \sqrt {\frac {a (\sec (c+d x)+1)}{a-b}} E\left (\sin ^{-1}\left (\frac {\sqrt {a+b \cos (c+d x)}}{\sqrt {a+b} \sqrt {\cos (c+d x)}}\right )|-\frac {a+b}{a-b}\right )}{3 a^2 d}+\frac {2 \sin (c+d x) \sqrt {a+b \cos (c+d x)}}{3 d \cos ^{\frac {3}{2}}(c+d x)}+\frac {2 (a-b) \sqrt {a+b} \cot (c+d x) \sqrt {\frac {a (1-\sec (c+d x))}{a+b}} \sqrt {\frac {a (\sec (c+d x)+1)}{a-b}} F\left (\sin ^{-1}\left (\frac {\sqrt {a+b \cos (c+d x)}}{\sqrt {a+b} \sqrt {\cos (c+d x)}}\right )|-\frac {a+b}{a-b}\right )}{3 a d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.40, antiderivative size = 271, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 4, integrand size = 25, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.160, Rules used = {2796, 2998, 2816, 2994} \[ \frac {2 b (a-b) \sqrt {a+b} \cot (c+d x) \sqrt {\frac {a (1-\sec (c+d x))}{a+b}} \sqrt {\frac {a (\sec (c+d x)+1)}{a-b}} E\left (\sin ^{-1}\left (\frac {\sqrt {a+b \cos (c+d x)}}{\sqrt {a+b} \sqrt {\cos (c+d x)}}\right )|-\frac {a+b}{a-b}\right )}{3 a^2 d}+\frac {2 \sin (c+d x) \sqrt {a+b \cos (c+d x)}}{3 d \cos ^{\frac {3}{2}}(c+d x)}+\frac {2 (a-b) \sqrt {a+b} \cot (c+d x) \sqrt {\frac {a (1-\sec (c+d x))}{a+b}} \sqrt {\frac {a (\sec (c+d x)+1)}{a-b}} F\left (\sin ^{-1}\left (\frac {\sqrt {a+b \cos (c+d x)}}{\sqrt {a+b} \sqrt {\cos (c+d x)}}\right )|-\frac {a+b}{a-b}\right )}{3 a d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2796
Rule 2816
Rule 2994
Rule 2998
Rubi steps
\begin {align*} \int \frac {\sqrt {a+b \cos (c+d x)}}{\cos ^{\frac {5}{2}}(c+d x)} \, dx &=\frac {2 \sqrt {a+b \cos (c+d x)} \sin (c+d x)}{3 d \cos ^{\frac {3}{2}}(c+d x)}+\frac {2}{3} \int \frac {\frac {b}{2}+\frac {1}{2} a \cos (c+d x)}{\cos ^{\frac {3}{2}}(c+d x) \sqrt {a+b \cos (c+d x)}} \, dx\\ &=\frac {2 \sqrt {a+b \cos (c+d x)} \sin (c+d x)}{3 d \cos ^{\frac {3}{2}}(c+d x)}+\frac {1}{3} (a-b) \int \frac {1}{\sqrt {\cos (c+d x)} \sqrt {a+b \cos (c+d x)}} \, dx+\frac {1}{3} b \int \frac {1+\cos (c+d x)}{\cos ^{\frac {3}{2}}(c+d x) \sqrt {a+b \cos (c+d x)}} \, dx\\ &=\frac {2 (a-b) b \sqrt {a+b} \cot (c+d x) E\left (\sin ^{-1}\left (\frac {\sqrt {a+b \cos (c+d x)}}{\sqrt {a+b} \sqrt {\cos (c+d x)}}\right )|-\frac {a+b}{a-b}\right ) \sqrt {\frac {a (1-\sec (c+d x))}{a+b}} \sqrt {\frac {a (1+\sec (c+d x))}{a-b}}}{3 a^2 d}+\frac {2 (a-b) \sqrt {a+b} \cot (c+d x) F\left (\sin ^{-1}\left (\frac {\sqrt {a+b \cos (c+d x)}}{\sqrt {a+b} \sqrt {\cos (c+d x)}}\right )|-\frac {a+b}{a-b}\right ) \sqrt {\frac {a (1-\sec (c+d x))}{a+b}} \sqrt {\frac {a (1+\sec (c+d x))}{a-b}}}{3 a d}+\frac {2 \sqrt {a+b \cos (c+d x)} \sin (c+d x)}{3 d \cos ^{\frac {3}{2}}(c+d x)}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 7.87, size = 247, normalized size = 0.91 \[ \frac {\tan \left (\frac {1}{2} (c+d x)\right ) \left (2 a^2+2 a (a+2 b) \cos (c+d x)+b (a+b) \cos (2 (c+d x))+a b+b^2\right )+2 a (a+b) \sqrt {\cos (c+d x)+1} \cos ^{\frac {3}{2}}(c+d x) \sqrt {\frac {a+b \cos (c+d x)}{(a+b) (\cos (c+d x)+1)}} F\left (\sin ^{-1}\left (\tan \left (\frac {1}{2} (c+d x)\right )\right )|\frac {b-a}{a+b}\right )-2 b (a+b) \sqrt {\cos (c+d x)+1} \cos ^{\frac {3}{2}}(c+d x) \sqrt {\frac {a+b \cos (c+d x)}{(a+b) (\cos (c+d x)+1)}} E\left (\sin ^{-1}\left (\tan \left (\frac {1}{2} (c+d x)\right )\right )|\frac {b-a}{a+b}\right )}{3 a d \cos ^{\frac {3}{2}}(c+d x) \sqrt {a+b \cos (c+d x)}} \]
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
fricas [F] time = 1.90, size = 0, normalized size = 0.00 \[ {\rm integral}\left (\frac {\sqrt {b \cos \left (d x + c\right ) + a}}{\cos \left (d x + c\right )^{\frac {5}{2}}}, x\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {\sqrt {b \cos \left (d x + c\right ) + a}}{\cos \left (d x + c\right )^{\frac {5}{2}}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [B] time = 0.30, size = 880, normalized size = 3.25 \[ \text {result too large to display} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {\sqrt {b \cos \left (d x + c\right ) + a}}{\cos \left (d x + c\right )^{\frac {5}{2}}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.00 \[ \int \frac {\sqrt {a+b\,\cos \left (c+d\,x\right )}}{{\cos \left (c+d\,x\right )}^{5/2}} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {\sqrt {a + b \cos {\left (c + d x \right )}}}{\cos ^{\frac {5}{2}}{\left (c + d x \right )}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________